import request from '@/utils/iasServiceRequest'

export function initRule2List(val) {
  return request({
    url: '/rules/queryRule004All',
    method: 'get',
    params: val
  })
}

export function submitRule2Info(val) {
  return request({
    url: '/rules/saveRule004Info',
    method: 'post',
    params: val
  })
}

export function insertRule2Info(val) {
  return request({
    url: '/rules/insertRule004Info',
    method: 'post',
    params: val
  })
}

export function deleteRule2Info(val) {
  return request({
    url: '/rules/delRule004Info/' + val,
    method: 'put',
    params: val
  })
}

// 批量删除类型1规则
export function batchDeleteRule2(ruleIds) {
  return request({
    url: '/rules/delRule2Batch',
    method: 'delete',
    params: ruleIds
  })
}

export function syncWindIdListData(val) {
  return request({
    url: '/excelDataCommon/syncWindIdListData/',
    method: 'put',
    params: val
  })
}
